home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
205_01
/
words.c
< prev
next >
Wrap
Text File
|
1980-01-01
|
896b
|
36 lines
/*
HEADER: CUG205.00;
TITLE: WORDS for Microsoft;
DATE: 09/24/86;
DESCRIPTION:
"Places words on individual lines.";
KEYWORDS: Software tools, Text filters, words, make words;
SYSTEM: MS-DOS;
FILENAME: WORDS.C;
WARNINGS:
"The author claims copyrights and authorizes non-commercial use only.";
AUTHORS: Michael M. Yokoyama;
COMPILERS: Microsoft;
*/
#include <stdio.h>
#include <ctype.h>
main()
{
int ch;
int col;
col = 1;
while ((ch = getchar()) != EOF)
if (isalpha(ch)) {
putchar(ch);
col ++;
}
else
if (col != 1) {
putchar('\n');
col = 1;
}
}